package com.abiao.shop.redis;

import lombok.*;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description: RedisConfig Redis配置类
 * @Author: AB
 * @Date: 2021-06-24
 * @Version:v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Component
@ConfigurationProperties(prefix = "redis")
public class RedisConfig{
    private String host;
    private int port;
    private int timeOut; //秒
    private String password;
    private int poolMaxTotal;   //最大连接数
    private int poolMaxIdle;    //最大空闲连接数
    private int poolMaxWait;    //最长阻塞等待时间（秒）
}
